using System;

namespace GameFrameworkLibraly.Helpers
{
    public class GameHelper
    {
        static private readonly Random Rand = new Random((int)DateTime.Now.Ticks);
        public static float RandomNext(float from, float to)
        {
            return (float)(Rand.NextDouble() * (to - from) + from);
        }

        public static float RandomNext(float to)
        {
            return (float)(Rand.NextDouble() * to);
        }
    }
}
